<template>MyRight组件</template>
<script setup>
import { onMounted, onUnmounted, onActivated, onDeactivated } from "vue";
onMounted(() => {
  console.log("MyRight-----组件被挂载了");
});
onUnmounted(() => {
  console.log("MyRight-----组件被销毁了");
});

onActivated(() => {
  console.log('MyRight-----组件被激活了')
})
onDeactivated(() => {
  console.log('MyRight-----组件被缓存了')
})
</script>
